case
This is a set of letter case string helpers.
Installation
If you're using Cargo, just add case
to your Cargo.toml
:
[]
= "1.0.0"
Usage
extern crate case;
use CaseExt;
// Snake case operations:
assert_eq!;
assert_eq!;
assert_eq!;
// Camel case operations:
assert_eq!;
assert!;
// Universal operations:
assert_eq!;
assert!;
To-do
to_human
/to_human_lowercase
: convert underscores to spaces and optionally capitalize the first characterto_title
: convert underscores to spaces and capitalize each word's first character